package org.dromara.pay.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 活动报名对象 pay_activity_registration
 *
 * @author yf
 * @date 2024-07-22
 */

@Data
@TableName("pay_activity_registration")
@Entity
@Table(name = "pay_activity_registration")
@SailTable(comment = "活动报名表", indexs = {})
public class PayActivityRegistration implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_OBJECT = "pay_activity_registration_id_to_object";
    /**
     * 报名表id
     */
    @TableId(value = "registration_id", type = IdType.AUTO)
    @Id
    private Integer registrationId;
    /**
     * 报名状态（0=待审核，1=已审核，2=待付款，3=未到场，4=已到场）
     */
    @Column(name = "registration_status")
    @SailColumn(comment = "报名状态（0=待审核，1=已审核，2=待付款，3=未到场，4=已到场）",type = "char(1)", defaultValue = "0")
    private String registrationStatus;
    /**
     * 用户wx_user（西湖论剑用户）
     */
    @SailColumn(comment = "用户wx_user（西湖论剑用户）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 活动id
     */
    @SailColumn(comment = "活动id",type = "int", defaultValue = "NULL")
    @Column(name = "activity_id")
    private Integer activityId;
    /**
     * 报名途径（0=微信公众号，1=微信小程序，2=大会官网）
     */
    @Column(name = "registration_way")
    @SailColumn(comment = "报名途径（0=微信公众号，1=微信小程序，2=大会官网）",type = "varchar(255)", defaultValue = "NULL")
    private String registrationWay;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标记（0未删除，2已删除）
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标记（0未删除，2已删除）",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
